package com.seecen.controller;

import com.seecen.service.TypeService;
import com.seecen.utils.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @CreateTime: 2025-10-16
 * @Author: WQL
 * @Version: 1.0
 */
@Slf4j
@RestController
@RequestMapping("/type")
@CrossOrigin
public class TypeController {

    @Autowired
    private TypeService typeService;

    @GetMapping
    public Result getAllType(){
        return typeService.getAllType();
    }

}